
(defvar scheme-mode-syntax-table nil "")

(defvar scheme-mode-abbrev-table nil "")

(if (not scheme-mode-syntax-table) (let ((i 0)) (setq scheme-mode-syntax-table (make-syntax-table)) (set-syntax-table scheme-mode-syntax-table) (while (< i 48) (modify-syntax-entry i "_   ") (setq i (1+ i))) (setq i (1+ 57)) (while (< i 65) (modify-syntax-entry i "_   ") (setq i (1+ i))) (setq i (1+ 90)) (while (< i 97) (modify-syntax-entry i "_   ") (setq i (1+ i))) (setq i (1+ 122)) (while (< i 128) (modify-syntax-entry i "_   ") (setq i (1+ i))) (modify-syntax-entry 32 "    ") (modify-syntax-entry 9 "    ") (modify-syntax-entry 10 ">   ") (modify-syntax-entry 12 ">   ") (modify-syntax-entry 59 "<   ") (modify-syntax-entry 96 "'   ") (modify-syntax-entry 39 "'   ") (modify-syntax-entry 44 "'   ") (modify-syntax-entry 46 "'   ") (modify-syntax-entry 35 "'   ") (modify-syntax-entry 34 "\"    ") (modify-syntax-entry 92 "\\   ") (modify-syntax-entry 40 "()  ") (modify-syntax-entry 41 ")(  ")))

(define-abbrev-table (quote scheme-mode-abbrev-table) nil)

(defvar scheme-mode-map nil "")

(defvar scheme-interaction-mode-map nil "")

(defun scheme-mode nil "\
Major mode for editing Scheme code.
Commands:
Delete converts tabs to spaces as it moves back.
\\[scheme-indent-line] indents for Scheme; with argument, shifts rest
 of expression rigidly with the current line.
\\[scheme-send-buffer] zaps whole buffer and resumes Scheme.
\\[scheme-zap-define] zaps the current definition.
\\[scheme-indent-sexp] scheme-indent on each line starting within following expression.
\\[find-scheme-definition] finds a scheme definition.
\\[scheme-send-define] zaps the current definition and resumes Scheme.
\\[resume-scheme] resumes Scheme.
Blank lines separate paragraphs.  Semicolons start comments.

Entry to this mode calls the value of scheme-mode-hook
if that value is non-nil." (interactive) (byte-code "ψ� �?�A � �����#����#����#����#����#����#����#����#�B ψ�!��	!���������!��P����!�����!��	���!��
���!�����!�����!�����!�� �� �!�" [scheme-mode-map scheme-mode-syntax-table major-mode mode-name local-abbrev-table scheme-mode-abbrev-table paragraph-start page-delimiter paragraph-separate indent-line-function comment-start comment-start-skip comment-column comment-indent-hook scheme-mode-hook nil kill-all-local-variables make-sparse-keymap define-key "o" scheme-send-buffer "z" scheme-zap-define "" scheme-indent-sexp "" find-scheme-definition "" scheme-send-define "" resume-scheme "" backward-delete-char-untabify "	" scheme-indent-line use-local-map set-syntax-table scheme-mode "Scheme" make-local-variable "^$\\|" ";" ";+ *" 40 scheme-comment-indent boundp funcall] 37))

(defun scheme-comment-indent (&optional pos) (byte-code "��
 b� È��!� i�/ ��!�. � 	<�) 	@�* 	)�/ 
)�" [pos tem comment-column nil looking-at ";;;" ";;" calculate-scheme-indent] 15))

(defconst scheme-indent-offset nil "")

(defconst scheme-indent-hook (quote scheme-indent-hook) "")

(defun scheme-indent-line (&optional whole-exp) "\
Indent current line as scheme code.
With argument, indent any additional lines of the same expression
rigidly along with this one." (interactive "P") (byte-code "ň� ���d`Z� �`����!���!�$ �� <�0 @��1 ňiZ���	!�B �I �
`\"�j�dZ`V�Y dZb�Z ň�� �	!?�� �
b���!�`��
b���!�`��
V)�� �
	#-�" [indent shift-amt beg end pos nil whole-exp calculate-scheme-indent beginning-of-line skip-chars-forward " 	" looking-at "[ 	]*;;;" zerop delete-region forward-sexp 1 forward-line indent-code-rigidly] 28))

(defun calculate-scheme-indent (&optional parse-start) "\
Return appropriate indentation for current line as scheme code.
In usual case returns an integer: the column to indent to.
Can instead return a list, whose car is the column to indent to.
This means that following lines at the same level of indentation
should not necessarily be indented the same way.
The second element of the list is the buffer position
of the start of the containing expression." (byte-code "�� �`������ b�! � �`W�3 �`�#���\" ��B 	@��B 
�V�%	���	8��	A@��Tb��f `V�� ��#

A@��� 
��� �)�� Ɉ?� Tb�?�� i���`�$���!�� ���!�`)V?�� b�� ��`�$�� Ɉ� �i�����!�`)V��`�$��`\"���!��`�$�Ɉ� ��b�� ��`�$�� �!Ɉ�4 ���	\"@�;b���!�i��r�!�D�Tb�i\\��r�k��!�k?�k�	#�?�ri��.)�" [indent-point state paren-depth desired-indent retry t last-sexp containing-sexp parse-start nil peek scheme-indent-offset scheme-indent-hook beginning-of-line beginning-of-defun parse-partial-sexp 0 2 looking-at "\\s(" forward-line 1 backward-prefix-chars /= forward-sexp nthcdr 3 skip-chars-forward " 	" integerp boundp funcall] 70))

(defun scheme-indent-hook (indent-point state) (byte-code "i�	A@Tb���!��`	A@\"�y ���!�`��!�`\"��
!�N���>�P ?�P 
G�V�P �
��O�\"�P �
��O�\"�Z �	\"�u �!�h �	#�u �t �	#�u �*�z �))�" [normal-indent state function method indent-point re-search-forward "\\sw\\|\\s_" /= buffer-substring forward-char -1 forward-sexp 1 nil intern-soft scheme-indent-hook (define DEFINE) 3 string-equal 0 "def" "DEF" scheme-indent-defform integerp scheme-indent-specform funcall] 31))

(defconst scheme-body-indent 2 "")

(defun scheme-indent-specform (count state indent-point) (byte-code "	A@��b�i��\\����!���!��`�$�`W�4 ��Џ�< Ɉ�) ��V�^ 
Z�X�W ��\"\\D�[ 
D�} 
�U�g �U�t �U�t 
X�{ �} 
,�" [containing-form-start state i count body-indent containing-form-column scheme-body-indent indent-point t nil normal-indent forward-char 1 forward-sexp parse-partial-sexp (byte-code "S����!��`	�
$�" [count indent-point t forward-sexp 1 parse-partial-sexp] 7) ((error (byte-code "�" [nil] 2))) 0 * 2] 23))

(defun scheme-indent-defform (state indent-point) (byte-code "A@b���!�`AA@V� A@b�	i\\� ć" [state scheme-body-indent forward-line 1 nil] 5))

(defun would-be-symbol (string) (byte-code "���O�\"?�" [string string-equal 0 1 "("] 4))

(defun next-sexp-as-string nil (byte-code "��!�`��!��`\")�" [the-end forward-sexp 1 backward-sexp buffer-substring] 7))

(defun scheme-let-indent (state indent-point) (byte-code "�� !� ��	#� ��	#�" [state indent-point would-be-symbol next-sexp-as-string scheme-indent-specform 2 1] 8))

(put (quote fluid-let) (quote scheme-indent-hook) 1)

(put (quote if) (quote scheme-indent-hook) 3)

(put (quote lambda) (quote scheme-indent-hook) 1)

(put (quote let) (quote scheme-indent-hook) (quote scheme-let-indent))

(put (quote named-lambda) (quote scheme-indent-hook) 1)

(put (quote sequence) (quote scheme-indent-hook) 0)

(put (quote COND) (quote scheme-indent-hook) (get (quote cond) (quote scheme-indent-hook)))

(put (quote FLUID-LET) (quote scheme-indent-hook) 1)

(put (quote IF) (quote scheme-indent-hook) 3)

(put (quote LAMBDA) (quote scheme-indent-hook) 1)

(put (quote LET) (quote scheme-indent-hook) (quote scheme-let-indent))

(put (quote NAMED-LAMBDA) (quote scheme-indent-hook) 1)

(put (quote SEQUENCE) (quote scheme-indent-hook) 0)

(defun scheme-indent-sexp nil "\
Indent each line of the list starting just after dot." (interactive) (byte-code "��	C���������!)��	��?�2
	�	�	?�5 m�?�� �`� �`		%��@����\"@�g � �� ����\"	\"�h ����\"@�x ��!�} 
�	��+ �
�X��� 	�.
V�� AS���� �
W�� �BT���� ���!�`����!�m�� ��!�� 	�.@�� @�Y�� @���@�� @[�� �!�!�	��\"��A@[\"�@�)��i\"�-�`\"�j�.��� ).�" [indent-stack nil next-depth bol outer-loop-done inner-loop-done state this-indent last-depth innerloop-done t val 0 forward-sexp 1 parse-partial-sexp end-of-line nthcdr 4 indent-for-comment setcar 3 forward-line skip-chars-forward " 	" looking-at "[;
]" calculate-scheme-indent integerp /= delete-region] 63))

(defconst scheme-zap-name "fromedit.zap" "Name of transfer file between Scheme and Emacs")

(defconst scheme-invocation-string "%scheme" "*String to give to the Cshell to proceed a sibling Scheme")

(defun goto-parallel-scheme-fork nil (byte-code "�!�" [scheme-invocation-string suspend-emacs] 3))

(fset (quote goto-scheme) (quote suspend-emacs))

(defun resume-scheme nil "\
Suspend Emacs and resume Scheme" (interactive) (byte-code "ň�	!p�( �ǎq�� 	��� �� ��))�) �*�� �" [zap-buffer scheme-zap-name this-buffer buffer-file-name buffer-modified-p nil get-buffer ((byte-code "q�" [this-buffer] 2)) save-buffer erase-buffer goto-scheme] 17))

(defun scheme-do-zap-region (start end buffer &optional separate) "\
Internal routine which zaps a region of text for Scheme." (byte-code "�	
\"�ǎ�!q��!�� ��!� �)))�" [the-text start end scheme-zap-name separate buffer buffer-substring ((byte-code "q�" [buffer] 2)) get-buffer-create insert-string newline 2 nil] 13))

(defun scheme-zap-region (start end) "\
Zap region between point and mark into Scheme." (interactive "r") (byte-code "�	p#�" [start end nil scheme-do-zap-region] 4))

(defun scheme-zap-expression (arg) "\
Zap sexp before point into Scheme." (interactive "P") (byte-code "È�� Ǝ��	!���!�`)))`p
$�" [stab lisp-mode-syntax-table t nil scheme-do-zap-region syntax-table ((byte-code "�!�" [stab set-syntax-table] 3)) set-syntax-table forward-sexp -1] 13))

(defun scheme-zap-define (arg) "\
Zap current definition into Scheme." (interactive "P") (byte-code "Ĉ� Ǝ��	!�`dU?� ��!� Ĉ��!�`��!��
`p$))))�" [stab scheme-mode-syntax-table start t nil syntax-table ((byte-code "�!�" [stab set-syntax-table] 3)) set-syntax-table forward-char 1 beginning-of-defun forward-sexp scheme-do-zap-region] 16))

(defun scheme-send-buffer (arg) "\
Zap whole buffer and resume Scheme" (interactive "P") (byte-code "���edp#�� �" [nil scheme-do-zap-region resume-scheme] 4))

(defun scheme-send-define (arg) "\
Zap current definition and resume Scheme" (interactive "P") (byte-code "���!�� �" [arg nil scheme-zap-define resume-scheme] 4))

(defun defining_p nil (byte-code "�`���!�`\"��!��`f�\"�I ��!�� ��O�
�\"�- �
�\"�D ��!���!���!��	� \"�E �)�J �*)�" [here name sub buffer-substring backward-sexp 1 beginning-of-defun char-equal 40 forward-char next-sexp-as-string 0 3 string-equal "def" "DEF" forward-sexp forward-word backward-word nil] 27))

(defun find-scheme-definition (name) "\
Find the definition of its argument in the current buffer" (interactive "sFind Scheme definition of: ") (byte-code "��� �	?� �
!�� ��� )�" [stop nil name beginning-of-buffer search-forward defining_p] 8))
